<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
 
</style>
<script src="./jquery.js"></script>
<body>
    <ul>
        <li>list item 1</li>
        <li>list item 2</li>
        <li>list item 3</li>
        <li>list item 4</li>
        <li>list item 5</li>
    </ul>
    男:<input name="man" type="checkbox"/>
女:<input name="women" type="checkbox" checked="true" />
    <script>
        //获取第一个元素
        console.log($("li:first"));

        //查找没有被选中的input
        console.log($("input:not(:checked)"));
       
        //查找奇数的li
        console.log($("li:even"));
        //偶数
        console.log($("li:odd"));

        //查找第一行的li(index为0开始)
        console.log($("li:eq(0)"));
        console.log("_______________________");
        //查找大于第一行的li(0开始)
        console.log($("li:gt(0)"));
        console.log($("li:lt(4)"));//小于第5行的数据
    </script>
</body>
</html>